package com.ctvit.cch.core.pojo.vo.creative;

import java.time.LocalDateTime;

import com.ctvit.cch.core.enums.CreationSourceEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 灵感创作列表 VO
 *
 * @author heyingcheng
 * @date 2025/10/22
 */
@Getter
@Setter
@ToString
public class InspirationCreationListVO {

 /**
     * 灵感创作ID
     */
    private String creationId;

    /**
     * 创作标题
     */
    private String title;
    
    /**
     * 创作简介
     */
    private String description;

    /**
     * 创作来源 INSP-灵感, HOT-热门, IDEA-创意
     */
    private String source;

    /**
     * 创作状态：ING-创作中 SUCCESS-创作成功 FAILURE-创作失败
     */
    private String generateStatus;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    public void setSource(String source) {
        this.source = CreationSourceEnum.valueOf(source).getComment();
    }

}
